import request from '@/utils/requestUtil'

//登录接口
export function memberLogin(data) {
	return request({
		method: 'POST',
		url: '/login/login',
		data: data
	})
}
//用户注册接口
export function registerUser(data) {
	return request({
		method: 'POST',
		url: '/login/register',
		data: data
	})
}
//用户注册接口
export function retrievePass(data) {
	return request({
		method: 'POST',
		url: '/user/retrieve',
		data: data
	})
}

//用户信息接口
export function memberInfo() {
	return request({
		method: 'GET',
		url: '/user/userInfo'
	})
}
//用户退出接口
export function loginOut() {
	return request({
		method: 'POST',
		url: '/login/loginOut'
	})
}
//修改用户信息接口
export function saveInfo(data) {
	return request({
		method: 'POST',
		url: '/user/saveInfo',
		data: data
	})
}
//获取货币明细数据
export function caplogDetail(data) {
	return request({
		method: 'get',
		url: '/user/caplogdetail',
		data: data
	})
}

//验证分享人接口
export function checkShare(data) {
	return request({
		method: 'POST',
		url: '/login/checkshare',
		data: data
	})
}

//获取充值类型数据
export function rechargeMethod(data) {
	return request({
		method: 'POST',
		url: '/index/rechargeMethod',
		data: data
	})
}
//提交充值数据
export function rechargeData(data) {
	return request({
		method: 'POST',
		url: '/user/recharge',
		data: data
	})
}

//获取提现记录列表
export function drawList() {
	return request({
		method: 'GET',
		url: '/user/drawList'
	})
}

//获取提现功能是否开启
export function qgDetail() {
	return request({
		method: 'GET',
		url: '/qg/index'
	})
}

export function drawInfo() {
	return request({
		method: 'GET',
		url: '/user/drawInfo'
	})
}

export function draw(data) {
	return request({
		method: 'POST',
		url: '/user/draw',
		data: data
	})
}


